<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page import="cn.bid.dao.user.UserDao"%>
<%@page import="cn.bid.dao.user.UserDaoI"%>
<%@page import="java.util.*,cn.bid.entity.*"%>
<html>
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>招标系统管理员</title>
</head>
<body>
	<%
		UserDaoI userDao=new UserDao();
		List<User> list=userDao.search();
	 %>
	 <a href="addUser.jsp">添加新用户</a>
	 <table align="center" width="80%" border="1" cellpadding="0" cellspacing="0">
	 	<tr>
	 	<th>ID</th><th>用户名</th><th>手机号</th><th>单位</th><th>入职日期</th><th>操作</th>
	 	</tr>
	 	<%
	 		for(User u:list){
	 	 %>
	 	 <tr>
	 	 <td><%=u.getId()%></td><td><%=u.getUserName() %></td><td><%=u.getTelephone() %></td><td><%=u.getUnit() %></td><td><%=u.getEnterdate() %></td>
	 		<td>
	 			<a onclick="return confirm('您真的要删除<%=u.getName()%>吗？')" href="delUser.jsp?id=<%=u.getId()%>">删除</a>
	 			
	 			<a onclick="return confirm('您真的要删除<%=u.getName()%>吗？')" href="#">修改</a>
	 				
	 		</td>
	 	 </tr>
	 	 <%} %>
	 </table>
</body>
</html>